<form class="form-horizontal center-block" name="basicInfoForm" novalidate>
  <div class="form-group">
    <label for="modelname" class="control-label">专题名称：</label>
    <div class="form-control">
      <input type="text" name="modelname" ng-model="basicInfo.modelname" placeholder="modelname" required>
      <span class="form-hint has-error" ng-show="basicInfo.submitted && basicInfoForm.modelname.$invalid">请填写专题名称</span>
    </div>
  </div>
  <div class="form-group">
    <label for="modelid" class="control-label">英文名称：</label>
    <div class="form-control">
      <input type="text" name="modelid" ng-disabled="isEditing" ng-model="basicInfo.modelid" placeholder="modelid" required ng-maxlength=96 ng-parten="/^[\w-]+$/" ensure-unique>
      <span class="form-hint" ng-show="!basicInfoForm.modelid.$error.unique" ng-class="{'has-error': basicInfo.submitted && basicInfoForm.modelid.$invalid}">将在专题的URL地址中显示，可使用英文、数字“_”和“-”，最长不得超过96字符</span>
      <span class="form-hint has-error" ng-show="basicInfoForm.modelid.$error.unique">英文名称冲突</span>
    </div>
  </div>
  <div class="form-group">
    <label for="timeout" class="control-label">过期时间：</label>
    <div class="form-control">
      <select name="timeout"  ng-model="basicInfo.timeout">
        <option value="0">0天</option>
        <option value="1">1天</option>
        <option value="2">2天</option>
        <option value="3">3天</option>
        <option value="4">4天</option>
        <option value="5">5天</option>
        <option value="6">6天</option>
        <option value="7">7天</option>
        <option value="8">8天</option>
        <option value="9">9天</option>
        <option value="10">10天</option>
        <option value="11">11天</option>
        <option value="12">12天</option>
        <option value="13">13天</option>
        <option value="14">14天</option>
        <option value="15">15天</option>
        <option value="16">16天</option>
        <option value="17">17天</option>
        <option value="18">18天</option>
        <option value="19">19天</option>
        <option value="20">20天</option>
        <option value="21">21天</option>
        <option value="22">22天</option>
        <option value="23">23天</option>
        <option value="24">24天</option>
        <option value="25">25天</option>
        <option value="26">26天</option>
        <option value="27">27天</option>
        <option value="28">28天</option>
        <option value="29">29天</option>
        <option value="30">30天</option>
        <option value="31">31天</option>
      </select>
      <span class="form-hint">专题过期的天数，静态页面请选择0天</span>
    </div>
  </div>
  <div class="form-group">
    <label for="freq" class="control-label">刷新频率：</label>
    <div class="form-control">
      <select name="freq"  ng-model="basicInfo.freq">
        <option value="0">永不</option>
        <option value="60">60分钟</option>
        <option value="4">4分钟</option>
        <option value="1440">每天</option>
        <option value="-1" selected>临时</option>
      </select>
    </div>
  </div>
  <div class="form-group">
    <label for="postid" class="control-label">合并跟帖：</label>
    <div class="form-control">
      <input type="text" name="postid" ng-model="basicInfo.postid" placeholder="postid">
      <span class="form-hint" >选填。可以填入文章id，让专题使用指定文章的跟帖。（未填则默认为专题生成新跟帖）</span>
    </div>
  </div>
  <div class="form-group">
    <label for="keywords" class="control-label">关键词：</label>
    <div class="form-control">
      <input type="text" name="keywords" ng-model="basicInfo.keywords" placeholder="keywords" required>
      <span class="form-hint" ng-show="!basicInfoForm.modelid.$error.unique" ng-class="{'has-error': basicInfo.submitted && basicInfoForm.keywords.$invalid}">以英文逗号“,”分隔各个关键字</span>
      <span class="form-hint has-error" ng-show="basicInfo.submitted && basicInfoForm.keywords.$invalid">请填写关键字</span>
    </div>
  </div>
  <div class="form-group">
    <label for="digest" class="control-label">描述：</label>
    <div class="form-control">
      <textarea name="digest" ng-model="basicInfo.digest" placeholder="digest" required></textarea>
      <span class="form-hint has-error" ng-show="basicInfo.submitted && basicInfoForm.digest.$invalid">请填写描述内容</span>
    </div>
  </div>
  <div class="form-group">
    <div class="form-control">
      <a class="btn" ng-click="submitBasicInfo(basicInfoForm)">保存</a> 
      <a ui-sref="xocean.wizard.chooseTmpl" class="back">返回上一步</a>
    </div>
  </div>
</form>